package com.cjl.host.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/16 17:10
 */

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "HostFoodRelation",description = "店家-菜品关系表")
@TableName("host_food_relations")
public class HostFoodRelations {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键，唯一标识，雪花算法，全局唯一")
    private Long id;

    @TableField("host_id")
    @ApiModelProperty("店家id")
    private int hostId;

    @TableField("food_id")
    @ApiModelProperty("菜品id")
    private int foodId;

    @TableField("updated_time")
    @ApiModelProperty("操作时间")
    private Date updatedTime;

    @TableField("behavior")
    @ApiModelProperty("行为")
    private String behavior;


    @TableField("type")
    @ApiModelProperty("操作种类")
    private int type;


}
